<template>
    <div>
        <h2>我是child2组件</h2>
        <h3>{{$store.state.title}}</h3>
        <button @click="save2">保存</button>
    </div>
</template>
<script>
export default {
  methods: {
      save2(){
          this.$emit('save')
      }
  }
}
</script>
 